export default {
  //修改state 的属性
  changeCity (state, city) {
    state.city = city
    //存入localStorage
    try {
      // 有可能用户关闭本地存储
      localStorage.city = city
    }catch (e) {
      console.log(e)
    }
  }
}
